package com.societyGames.codeAlong.codeExercise
{
	import flash.events.Event;
	
	public class SyntaxErrorEvent extends Event
	{
		public static const SYNTAX_ERROR:String = "SYNTAX_ERROR";
		private var _syntaxError:SyntaxError;

		public function get syntaxError():SyntaxError
		{
			return this._syntaxError;
		}
		
		public function SyntaxErrorEvent(type:String, error:SyntaxError, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this._syntaxError = error;
		}
	}
}